/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.paydetail;

import com.xingkeduo.dto.OrderDetailResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class PayDetail {

    private int error;
    private Object reason;
    private ContentPayDetail content;



    public void covert(ContentPayDetail payDetail, ResponseUtils<OrderDetailResponseDto> orderDetailResponseDto) {
        this.error = orderDetailResponseDto.getStatus()==1?0:1;
        this.reason=orderDetailResponseDto.getMsg();
        this.content = payDetail;
    }
}